<?php

function meuautoload($classe){
	$pastas = array('app.widgets', 'app.ado', 'app.model', 'app.control');
	foreach ($pastas as $pasta)
	{
		if (file_exists("{$pasta}/{$classe}.class.php"))
		{
			include_once "{$pasta}/{$classe}.class.php";
		}
		if (file_exists("../{$pasta}/{$classe}.class.php"))
		{
	
		include_once "../{$pasta}/{$classe}.class.php";
		}
		}
}
spl_autoload_register('meuautoload');
?>